package com.woniuxy.personal.core.service.impl;

import com.woniuxy.personal.core.model.PlOrderitem;
import com.woniuxy.personal.core.mapper.PlOrderitemMapper;
import com.woniuxy.personal.core.service.PlOrderitemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.personal.core.vo.PlOrderitemDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class PlOrderitemServiceImpl extends ServiceImpl<PlOrderitemMapper, PlOrderitem> implements PlOrderitemService {
    @Resource
    private PlOrderitemMapper orderitemMapper;
    @Override
    public List<PlOrderitem> selectOrderItem(int order_id) {

        return  orderitemMapper.selectOrderItem(order_id);
    }

    @Override
    public List<PlOrderitemDto> selectMoney(int storeId) {
        List<PlOrderitemDto> list = this.orderitemMapper.selectManey(storeId);
        return list;
    }

    @Override
    public List<String> selectName(int storeId) {
        List<String> list = this.orderitemMapper.selectName(storeId);
        return list;
    }

    @Override
    public List<Double> seletByName(String s) {
        List<Double> list = this.orderitemMapper.selectByname(s);
        return list;
    }

    @Override
    public List<Integer> seletOrderId(int storeId) {
        List<Integer> list = this.orderitemMapper.selectOrder(storeId);
        return list;
    }


}
